// 实时物流数据
import { reactive } from "vue";
export function useRealLogistics() {
    const citiesOfFujian = ["福州市", "厦门市", "莆田市", "三明市", "泉州市", "漳州市", "南平市", "龙岩市", "宁德市"];
    const logisticsStatus = ["已下单", "已揽收", "运输中", "到达转运中心", "派送中", "已签收", "已取消"];
    const barSeries = reactive([
        { name: "", data: [100, 302, 301, 334, 390, 330, 320] },
        { name: "", data: [320, 132, 101, 134, 90, 230, 210] },
        { name: "", data: [220, 182, 191, 234, 290, 330, 310] },
        { name: "", data: [150, 212, 201, 154, 190, 330, 410] },
        { name: "", data: [820, 832, 901, 934, 1290, 1330, 1320] },
        { name: "", data: [820, 832, 901, 934, 1290, 1330, 1320] },
        { name: "", data: [820, 832, 901, 934, 1290, 1330, 1320] },
    ]);
    logisticsStatus.forEach((cityName, index) => {
        barSeries[index].name = cityName;
    });
    const xAxisData = reactive(citiesOfFujian);
    return { barSeries, xAxisData };
}
